<?php
/**
 *OPENSHOP  管理中心聚集页设定程序
 *@package  OpenShop
 *@version  $Id: createdynamic.php,v 1.0 2009/07/29 11:18:17 modified $
 *@author   杨敬君 <aqkt_436@hotmail.com>
 */
define('IN_OS', true);
require(dirname(__FILE__) . '/includes/init.php');
require(dirname(__FILE__) . '/includes/cls_dynamic.php');

/* 检查权限 */
admin_priv('fill_dynamic_tpl');	

//读取项目库ID
$Lib=new cls_dynamic();
$Lib->LibIDC=$_REQUEST['id'];
$Lib->imgname=$_CFG['pre_fetch_img'];
/*
 * 读取项目库的具体属性
 */
$xmlconfig=$Lib->get_dynamic();
$smarty->assign('ur_here','<a href=template.php?act=setup>设置模版</a> >>填充内容'.$_LANG['template_libs'][$LibIDC]); 
$smarty->assign('dynamic',$Lib->get_dynamic($LibIDC));

$guide = lattice_setting('fill_dynamic_tpl');
$guide['level_two']="createdynamic";
$smarty->assign('guide',$guide);
$smarty->assign('dynamic',$Lib->get_dynamic($LibIDC));
$smarty->display("createdynamic.tpl");
?>